class Person:
    def __init__(self, name, age, gender):
        self.name = name
        self.age = age
        self.gender = gender

yuan = Person("yuan",22,"male")

# print(yuan.name)
# yuan.age = 100
# print(yuan.age)
while 1:
    attr = input("请输入您想查询的yuan的某个属性")

    val = getattr(yuan, attr)
    print(val)
